package com.mind.api.utils;

import com.mind.common.utils.StringUtils;

import java.util.Set;

public class BusinessCateUtils {


    public static boolean containOffline(Set<String> offlineCates, String cate) {
        if (offlineCates == null || offlineCates.isEmpty()) {
            return false;
        }
        if (StringUtils.isNotEmpty(cate)) {
            String[] businessCateArr = cate.split(",");
            for (String businessCate : businessCateArr) {
                if (offlineCates.contains(businessCate)) {
                    return true;
                }
            }
        }
        return false;
    }
}
